module.exports = function(req, res, next) {
  // set custom header.
  // res.setHeader('xxxx', 'xxx');
  res.setHeader('Content-Type', 'application/json');

  res.write(JSON.stringify({
    message: 'Hello world',
    time: Date.now()
  }));

  res.end();
};